package com.example.common.webSocket;

import lombok.Data;

@Data
public class SendSocket {
    public String type;
    public String message;
    public SendSocket socket;

    public void setSocket(String type, String message) {
        SendSocket socket = new SendSocket();
        socket.setType(type);
        socket.setMessage(message);
        this.socket = socket;
    }

    @Override
    public String toString() {
        return "{type=\"" + type + "\"" +
                ", message=\"" + message + "\"" +
                ", socket=" + socket +
                "}" ;
    }
}
